package edu.ccut.saturn.studio.dialog.transformdialog;

import org.eclipse.jface.viewers.ILabelProviderListener;
import org.eclipse.jface.viewers.ITableLabelProvider;
import org.eclipse.swt.graphics.Image;

import edu.ccut.saturn.studio.logic.model.saturn.SaturnContent;

public class SaturnTransformLabelProvider implements ITableLabelProvider {

	public Image getColumnImage(Object element, int columnIndex) {
		return null;
	}
	
	public String getColumnText(Object element, int columnIndex) {
		SaturnContent saturnContent = (SaturnContent)element; 
		if (columnIndex == 0) {
			return saturnContent.getId();
		}
		if (columnIndex == 1) {
			return saturnContent.getType();
		}
		if (columnIndex == 2) {
			return saturnContent.getContentValueKey();
		}
		
		return "";
	}

	public void addListener(ILabelProviderListener listener) {
	}

	public void dispose() {
	}

	public boolean isLabelProperty(Object element, String property) {
		return false;
	}

	public void removeListener(ILabelProviderListener listener) {
	}
}
